<!DOCTYPE html>
  <html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
  </head>
  <body>
    <form action="lesson16/up" method="post" enctype="multipart/form-data">
      <input type="file" name="myfile" value="">
      <input type="submit" value="上传文件">
    </form>
    <ul>
      <!-- fd就是经过中间件处理的req.file，通过fd.filename可以拿到它的文件名 !-->
    <%     list.forEach(function (fd){ %>
        <li><img src="/lesson16/img/<%=fd.filename%>"</li>
        <% }); %>
    </ul>
  </body>
  </html>
